'''文件写的操作'''

file_name = "pi_30_digits.txt"


def create_file():
    """
    创建文件的方法
    :return:
    """
    with open("1.txt","a+", encoding='UTF-8') as file_obj:
        file_obj.write("You couldn't put a price on loyalty.\n")
        file_obj.write("你不能用钱来买忠心 .\n")


def write_file():
    """
    写文件
    :return:
    """
    with open(file_name, "a+", encoding='UTF-8') as file_object:
        print("原文件的内容是：", file_object.read().rstrip())
        file_object.write("00000000000000")


create_file()
